package com.shy.mapper;

import com.shy.config.common.BaseQuery;
import com.shy.config.util.DataScope;
import com.shy.entity.Clue;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author sunhuanyu
* @description 针对表【t_clue(线索表)】的数据库操作Mapper
* @createDate 2024-12-09 11:57:17
* @Entity com.shy.entity.Clue
*/
public interface ClueMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Clue record);

    int insertSelective(Clue record);

    Clue selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Clue record);

    int updateByPrimaryKey(Clue record);

    @DataScope(tableAlias = "tc", tableField = "owner_id")
    List<Clue> queryClueListByPage(BaseQuery baseQuery);

    Clue selectByClueKey(Integer clueId);

    void save(List<Clue> cachedDataList);

    int batchDeleteCluesByIds(List<Integer> ids);
}
